<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=21886">bug 21886</a>:
window.HTMLOptionElement == "function HTMLElement() { [native code] }" instead of HTMLOptionElementConstructor.</p>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.HTMLOptionElement.prototype.foo = function() { }

try {
    document.body.foo();
    document.write("FAIL");
} catch (ex) {
    document.write("SUCCESS");
}
</script>
</body>
